home *** CD-ROM | disk | FTP | other *** search
- function phurtnumshow(string)
- {
- _root[hurtshowname]._alpha = 100;
- tempset.text = string;
- if(tempset.text.length == 5)
- {
- _root[hurtshowname].gotoAndStop(5);
- pshow5(tempset.text);
- }
- else if(tempset.text.length == 4)
- {
- _root[hurtshowname].gotoAndStop(4);
- pshow4(tempset.text);
- }
- else if(tempset.text.length == 3)
- {
- _root[hurtshowname].gotoAndStop(3);
- pshow3(tempset.text);
- }
- else if(tempset.text.length == 2)
- {
- _root[hurtshowname].gotoAndStop(2);
- pshow2(tempset.text);
- }
- else if(tempset.text.length == 1)
- {
- _root[hurtshowname].gotoAndStop(1);
- pshow1(tempset.text);
- }
- }
- function hpde(atkv, atkstyle)
- {
- if(_root.playerflash._currentframe == 1)
- {
- _root.playerflash.gotoAndPlay(2);
- _root.player.hurtshow.gotoAndPlay(2);
- atkran = random(20);
- hpd = atkv + atkran;
- var _loc2_ = hpd;
- _loc2_ -= _root.ablities.str * 5;
- if(_root.mapleheroef == true)
- {
- _loc2_ -= Math.round(_root.ablities.str * skill.skillpointarray[6] / 200);
- }
- if(_loc2_ <= 0)
- {
- _loc2_ = 1;
- }
- _root.hp -= _loc2_;
- if(_root.hp <= 0)
- {
- _root.hp = 50;
- _root.atk = false;
- _root.jump = false;
- _root.jumpsct.gotoAndStop(1);
- _root.jumphigh = 0;
- _root.jump = false;
- _root.player._x = 496;
- _root.player._y = 403;
- _root.port = true;
- _root.mapshouldgo = -925;
- _root.gotoAndStop(3);
- expsd();
- }
- vrb += 1;
- duplicateMovieClip(hurtnumshow,"hurtnumshow" + vrb,16384 + vrb);
- hurtshowname = "hurtnumshow" + vrb;
- _root[hurtshowname]._alpha = 100;
- _root[hurtshowname]._x = _root.player._x;
- _root[hurtshowname]._y = _root.player._y - 24;
- _root[hurtshowname].gotoAndStop(5);
- phurtnumshow(_loc2_);
- if(_root.stormskill._currentframe != 1)
- {
- _root.stormskill.gotoAndPlay(29);
- }
- }
- }
- function pshow5(getstring)
- {
- go51 = getstring.charAt(0);
- go52 = getstring.charAt(1);
- go53 = getstring.charAt(2);
- go54 = getstring.charAt(3);
- go55 = getstring.charAt(4);
- if(go51 == 0)
- {
- go51 = 10;
- }
- if(go52 == 0)
- {
- go52 = 10;
- }
- if(go53 == 0)
- {
- go53 = 10;
- }
- if(go54 == 0)
- {
- go54 = 10;
- }
- if(go55 == 0)
- {
- go55 = 10;
- }
- _root[hurtshowname].numshow51.gotoAndStop(go51);
- _root[hurtshowname].numshow52.gotoAndStop(go52);
- _root[hurtshowname].numshow53.gotoAndStop(go53);
- _root[hurtshowname].numshow54.gotoAndStop(go54);
- _root[hurtshowname].numshow55.gotoAndStop(go55);
- }
- function pshow4(getstring)
- {
- go41 = getstring.charAt(0);
- go42 = getstring.charAt(1);
- go43 = getstring.charAt(2);
- go44 = getstring.charAt(3);
- if(go41 == 0)
- {
- go41 = 10;
- }
- if(go42 == 0)
- {
- go42 = 10;
- }
- if(go43 == 0)
- {
- go43 = 10;
- }
- if(go44 == 0)
- {
- go44 = 10;
- }
- _root[hurtshowname].numshow41.gotoAndStop(go41);
- _root[hurtshowname].numshow42.gotoAndStop(go42);
- _root[hurtshowname].numshow43.gotoAndStop(go43);
- _root[hurtshowname].numshow44.gotoAndStop(go44);
- }
- function pshow3(getstring)
- {
- go31 = getstring.charAt(0);
- go32 = getstring.charAt(1);
- go33 = getstring.charAt(2);
- if(go31 == 0)
- {
- go31 = 10;
- }
- if(go32 == 0)
- {
- go32 = 10;
- }
- if(go33 == 0)
- {
- go33 = 10;
- }
- _root[hurtshowname].numshow31.gotoAndStop(go31);
- _root[hurtshowname].numshow32.gotoAndStop(go32);
- _root[hurtshowname].numshow33.gotoAndStop(go33);
- }
- function pshow2(getstring)
- {
- go21 = getstring.charAt(0);
- go22 = getstring.charAt(1);
- if(go21 == 0)
- {
- go21 = 10;
- }
- if(go22 == 0)
- {
- go22 = 10;
- }
- _root[hurtshowname].numshow21.gotoAndStop(go21);
- _root[hurtshowname].numshow22.gotoAndStop(go22);
- }
- function pshow1(getstring)
- {
- go11 = getstring.charAt(0);
- if(go11 == 0)
- {
- go11 = 10;
- }
- _root[hurtshowname].numshow11.gotoAndStop(go11);
- }
- function expsd()
- {
- if(_root.exps / _root.expmax > 0.1)
- {
- _root.exps -= _root.expmax * 0.1;
- }
- else
- {
- _root.exps *= 0.9;
- }
- _root.exps = Math.round(_root.exps);
- }
- vrb = 0;
-